Changed urllib2 to urllib in monkey patch