use urllib2 instead of urllib

urllib.urlopen has been deprecated since 2.6 in favor of the urllib2 version (available since Python 2.1) and does not support proxy CONNECT tunneling, which is necessary to access GitHub over a Squid proxy.