PY3 use urllib2 or urllib.request, based on Py2/3

Also fixes #2166.