Modify the .py file using the pdf file provided

yimin