Raven is deprecated (last release in 2018, only up to py3.7) you should move to sentry-python instead