removed urllib2 and replaced with requests