結果 : python write to first line of file