python:Hardway:Ex16: Reading and writing files