結果 : capture stdout from function python