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