HeadFirstPython_6_1 modify the data structure of txt