use urllib2 instead of requests