more porting of requests to py3