use urllib.request to replace urllib2