def start_program(self, **info): Program.start(**info)
def next(self): self.active_switch_program = (self.active_switch_program + 1) % len(self.switch_programs) Program.start(**self.switch_programs[self.active_switch_program])