fixing syntax errors in oauth_handler.py