How do you use string formatting on a json string or other strings that have brackets? This, you would work with as a dictionary, but I can't think of a good example:
payload = '''
{"accessToken": "{accessToken}","clientToken": "{clientToken}"}
'''.format(clientToken = clientToken, accessToken = accessToken)