Fix for latest version of requests