recipe1. simple read and write files with python.