make compatible with new requests package

update to make work with new requests package