class Signal:

    def __init__(self):
        self.subs = []

def subscribe(self, s):
    self.subs.append(s)

def signal(self, *args, **kwargs):
    for s in self.subs:
        pass
Handle communication in multi layer application