Support for requests >= 1.0.0

Just a quick fix to work with newer requests versions.