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