The method you mention is meant to retrieve a credential from Datastore:
class oauth2client.contrib.appengine.StorageByKeyName(**kwargs) Bases: oauth2client.client.Storage Store and retrieve a credential to and from the App Engine Datastore.
Have you called the method this way?
This discussion group is oriented more towards general opinions, trends, and issues of general nature touching the app engine. For coding and programming architecture, as well as using Google Drive APIs, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help.