title: ImportError: no module named pwd in app engine
body: <p>I'm trying to run a python flask based application on google app engine using cloud datastore. I'm following the bookshelf example -
  <a href="https://cloud.google.com/python/getting-started/using-cloud-datastore" rel="nofollow">https://cloud.google.com/python/getting-started/using-cloud-datastore</a></p>
  
  <p>Everything seems to work in local machine but on app engine, I'm getting 
  <code>ImportError: No module named pwd</code>, which is being imported by oauth2client library.</p>
  
  <p>Is there anything I'm missing. Any help will be appreciated.</p>
  
  <p>The question referenced as duplicate is different. The application there seems to fail only locally, whereas for me everything works locally but fails to work in GAE.</p>
  
  <p>Here's the stack trace (partial) -</p>
  
  <pre><code>...
  1384/v1.394932573930853146/application/home/model.py", line 16, in save_user
      ds = get_client()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/application/home/model.py", line 7, in get_client
      return datastore.Client('bookshelf-1384')#current_app.config['PROJECT_ID'])
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/gcloud/datastore/client.py", line 173, in __init__
      super(Client, self).__init__(credentials, http)
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/gcloud/client.py", line 122, in __init__
      credentials = get_credentials()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/gcloud/credentials.py", line 82, in get_credentials
      return client.GoogleCredentials.get_application_default()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/oauth2client/client.py", line 1288, in get_application_default
      return GoogleCredentials._get_implicit_credentials()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/oauth2client/client.py", line 1273, in _get_implicit_credentials
      credentials = checker()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/oauth2client/client.py", line 1226, in _implicit_credentials_from_files
      credentials_filename = _get_well_known_file()
    File "/base/data/home/apps/s~bookshelf-1384/v1.394932573930853146/lib/oauth2client/client.py", line 1392, in _get_well_known_file
      default_config_dir = os.path.join(os.path.expanduser('~'),
    File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/posixpath.py", line 268, in expanduser
      import pwd
  ImportError: No module named pwd
  </code></pre>