urllib has methods arranged differently in Python3 so the same code won't work for Python2 and Python3