Fix for python3 support, re: deprecation of urllib2 module