class MyDocTemplate(BaseDocTemplate):
    """Override the BaseDocTemplate class to do custom handle_XXX actions"""

def __init__(self, *args, **kwargs):
    BaseDocTemplate.__init__(self, *args, **kwargs)
Условный разрыв страницы в reportlab