Changed urlopen imports to work with python 3.x