Fixed an exception caused by change in requests library,
in which response.json changed from a property to a method.