python check if value in list and get indexの検索結果