Fixes the logic of limit and batch size
pep8
Merge pull request #17 from plone/logic-fix

Logic fix