Change from indexerror to stopiteration
Change IndexError to StopIteration
Change IndexError to StopIteration