def pre_connect_hook(self, params, headers):
        headers['Authorization'] = ('Bearer ' +
                                    self.oauth2_credential.access_token)
        return params, headers
Check to make sure that token hasn't expired.  If it has, get an
dataset/ETHPy150Open apache/libcloud/libcloud/common/google.py/GoogleBaseConnection.pre_connect_hook