[python] How to erase the file contents of text file in Python?