how to erase the file contents of text file in python?,"open('file.txt', 'w').close()"