Python Fw.write