結果 : how to read terminal output in python