Changing response.json to response.json() for compatibility with requests 1.0+