Moving from pycurl to urllib2