use python 2.7 to write the program