modify usage of json response incoperating new version of requests