title: Gspread & Oauth2 on Python 3.4 - Oauth does not support indexing
body: <p>I want to use gspread and since client authentication is outdated, I'm trying with Oauth2.  I'm new to both gspread &amp; Oauth2.  </p>
  
  <p>Piecing together <a href="https://developers.google.com/api-client-library/python/guide/aaa_oauth" rel="nofollow">from this basic Oauth2 example</a> and <a href="https://github.com/burnash/gspread" rel="nofollow">the gspread documentation</a> I have the most basic login function.  </p>
  
  <pre><code>import gspread
  from oauth2client.client import OAuth2WebServerFlow
  CLIENT_ID = 'my id'
  CLIENT_SECRET = 'my secret key'
  flow = OAuth2WebServerFlow(client_id= CLIENT_ID,
      client_secret= CLIENT_SECRET,
      scope='https://docs.google.com/spreadsheets/',
      redirect_uri='http://localhost:80')
  gc = gspread.authorize(flow)
  </code></pre>
  
  <p>The problem is that I get this error.  </p>
  
  <blockquote>
    <p>TypeError: 'OAuth2WebServerFlow' object does not support indexing</p>
  </blockquote>
  
  <p>from the larger</p>
  
  <blockquote>
    <p>C:\Python34\lib\site-packages\gspread\client.py:73: Warning: 
                ClientLogin is deprecated:
                <a href="https://developers.google.com/identity/protocols/AuthForInstalledApps?csw=1" rel="nofollow">https://developers.google.com/identity/protocols/AuthForInstalledApps?csw=1</a></p>
  
  <pre><code>        Authorization with email and password will stop working on April 20, 2015.
  
          Please use oAuth2 authorization instead:
          http://gspread.readthedocs.org/en/latest/oauth2.html
  </code></pre>
    
    <p>""", Warning)
    Traceback (most recent call last):
      File "C:\Users\family\Desktop\mygspread.py", line 13, in 
        gc = gspread.authorize(flow)
      File "C:\Python34\lib\site-packages\gspread\client.py", line 335, in authorize
        client.login()
      File "C:\Python34\lib\site-packages\gspread\client.py", line 105, in login
        data = {'Email': self.auth[0],
    TypeError: 'OAuth2WebServerFlow' object does not support indexing</p>
  </blockquote>
  
  <p>Since both are official scripts - one from google and the other from burnash, I'm not sure what to change.  I know the question is basic, but how do I log in with Python 3.4?</p>