no longer depend on modified pylear2 iterator class, copied the modified iterator into this repo