'Print Titles are rows or columns that are repeated on each printed sheet.
This adds n rows or columns at the top or left of the sheet'

def add_print_title(self, n, rows_or_cols='rows'):

    scope = self.parent.get_index(self)
    if (rows_or_cols == 'cols'):
        r = ('$A:$%s' % get_column_letter(n))
    else:
        r = ('$1:$%d' % n)
    self.parent.create_named_range('_xlnm.Print_Titles', self, r, scope)
