File Handling In Python Code