IndexEntry instead of list in python find indexes.