Remove unused imports and add get_sentry