How to empty a file using Python,"open(filename, 'w').close()"