fixed to work with requests==1.2.3