Fixed urllib import to support Python 3