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