Dictionary creation could be rewritten as a dictionary literal.
for example:
token_values = {}
token_values['user_id'] = access.get('user', {}).get('id')
could be rewritten as
token_values = {'user_id': access.get('user', {}).get('id')}
TrivialFix
Change-Id: I0c5677b527d440b8faded31bf4d9d62805391ae3