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