python get index of element in list if exists