Add support for requests<1.0.0