paginate() in pager.py returns the wrong page: paginate([1,2,3,4,5], 1, 2) should be [1, 2]. Fix the bug.