結果 : how to capture output in python