Modify the program for python2.7 to python3.4.