def is_trans_day(self, dt):
    if ((dt.date().weekday() == calendar.SATURDAY) or (dt.date().weekday() == calendar.SUNDAY) or (dt.date() in self._holidays[dt.year])):
        return False
    else:
        return True
def is_trans_day(self, dt):
    if ((dt.date().weekday() == calendar.SATURDAY) or (dt.date().weekday() == calendar.SUNDAY) or (dt.date() in self._holidays[dt.year])):
        return False
    else:
        return True