use urlopen from urllib2 on py2