def __init__(self, *args, **kwargs): super(coupler, self).__init__(*args, **kwargs) #modules are added to the coupler as objects self.switch = SimpleSwitch()
def handl_port_stat(self, ev): switch = SimpleSwitch() switch.port_status_handler(ev)