change from request to urllib2 module