python flatten 2d array to 1dの検索結果