Changed urllib import to provide Py3 compatibility