Google API Python - KeyError: _module
<p>I am trying to use the quickstart.py ( <a href="https://developers.google.com/gmail/api/quickstart/python" rel="noreferrer">https://developers.google.com/gmail/api/quickstart/python</a> ) as per Google's Gmail API using oauth2. I am getting the below error.</p>

<pre><code>Traceback (most recent call last):
  File "quickstart.py", line 68, in &lt;module&gt;
    main()
  File "quickstart.py", line 54, in main
    credentials = get_credentials()
  File "quickstart.py", line 37, in get_credentials
    credentials = store.get()
  File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 407, in get
        return self.locked_get()
      File "/usr/local/lib/python2.7/dist-packages/oauth2client/file.py", line 54, in locked_get
        credentials = client.Credentials.new_from_json(content)
      File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 302, in new_from_json
        module_name = data['_module']
    KeyError: '_module'
</code></pre>