fixed urllib import for python 2 compatibility