結果 : how to capture stdout in python