結果 : python write stdout to file and console