Enabling OAuth2 with Python streaming applications