use urllib and urllib2 instead of requests