def __init__(self, ex, day_periods, first_week_day=calendar.SUNDAY):
    super(TransCalendar, self).__init__(firstweekday=first_week_day)
    self._exchange = ex
    self._day_periods = day_periods
    self._holidays = defaultdict(list)
    self.set_holiday(TransCalendar.Holidays_2017[self._exchange])
def __init__(self, ex, day_periods, first_week_day=calendar.SUNDAY):
    super(TransCalendar, self).__init__(firstweekday=first_week_day)
    self._exchange = ex
    self._day_periods = day_periods
    self._holidays = defaultdict(list)
    self.set_holiday(TransCalendar.Holidays_2017[self._exchange])