python read line from stdoutの検索結果