changed raise of StopIteration to return according to PEP 479
fix