updated for new version of requests module