Replace In Python File Handling