A simple pagination class for python