結果 : write command output to file in python