Replacing urllib2 to requests