removed use of requests module