code: def weekend_to_monday(dt):
      
      if dt.weekday() == 6:
          return dt + timedelta(1)
      elif dt.weekday() == 5:
          return dt + timedelta(2)
      return dt
docs: If holiday falls on Sunday or Saturday,
      use day thereafter (Monday) instead.
      Needed for holidays such as Christmas observation in Europe