Update sentry.py for OpenERP 8.0 compatible