Corrects wrong order of classes

Fixes it according to issue #1 in dbosk/pypager repo