Looks like there is some cleanup to do in iterators methods. I opened a new (more general) ticket https://github.com/lisa-lab/pylearn2/issues/824