'Return a matrix representing a month\'s calendar.
Each row represents a week; week entries are
(day number, weekday number) tuples. Day numbers outside this month
are zero.'

def monthdays2calendar(self, year, month):

    days = list(self.itermonthdays2(year, month))
    return [days[i:(i + 7)] for i in range(0, len(days), 7)]
