[Zope] batching/looping to find next item in python-scripts