Modified urllib import to support Python 3 as well.