Use response.json() instead of json.loads(response.text).