Allow page cropping under Python 3