結果 : capture terminal output python