Returns a list of week in a month. A week is a list of NepDate objects

def monthdatescalendar(cls, year, month):
        """ Returns a list of week in a month. A week is a list of NepDate objects """
        weeks = []
        week = []
        for day in NepCal.itermonthdates(year, month):
            week.append(day)
            if len(week) == 7:
                weeks.append(week)
                week = []
        if len(week) > 0:
            weeks.append(week)
        return weeks