結果 : write object to file in python