Fix import of urllib2 for Python 3