How to Read and Write Files in Python