work for python 2.6

my python is 2.6, urllib.urlopen is not for me,I am not sure whether this script work for python3. but it work for python 2.6 now.