The oauth2client library makes it easy to connect to resources protected by OAuth 2.0. The oauth2client library comes as part of the google-api-python-client, but is also available as a separate download if you just need the OAuth 2.0 capabilities.