I may be being dense, but doesn't this replace track_lst with what ever `gen` yeilds on this cycle?  I would have expeceted this section to look more like `return list(gen)`