fixing to work with the newer version of requests