Update plugin.py

make compatible with other sentry versions