def __call__(self, r):
        if self.dynamic_token:
            access_token = self.dynamic_token
        else:
            access_token = str(self.authenticate()['access_token'])
        r.headers['Authorization'] = 'OAuth %s' % access_token
        return r
standard auth hook on the "requests" request r
dataset/ETHPy150Open django-salesforce/django-salesforce/salesforce/auth.py/SalesforceAuth.__call__