atomic writing to file with Python,f.write('huzza')