def prepare_bearer_headers(token, headers=None):
 headers = (headers or {})
 headers[u'Authorization'] = (u'Bearer %s' % token)
 return headers

def prepare_bearer_headers ( token , headers = None ) : headers = ( headers or { } ) headers [ u'Authorization' ] = ( u'Bearer %s' % token ) return headers
add a bearer token_ to the request uri .