File Handling Code In Python