replace urlfetch by urllib2