Fix memory corruption caused by pushing to output queue before sequence copy; add explicity delete of ReadBatch to cpython iterator function