a port of the caching algorithms in httplib2 for use with requests
session object.
