Fix for requests library version 1.2.x