DictionaryStorage implements an optionally-locked storage over a dictionary-like object.
oauth2client.contrib.dictionary_storage