Python2.7 script

The script tested in python2.7