urllib import python3 compatibility fix