Replace Function In Python File Handling W3schools