replace 'urllib2' with 'httplib'