Fixed for older versions of requests