def __init__(self, *a, **k): ClientEndpoint.__init__(self, *a, **k) self.cmd_listeners = defaultdict(WeakSet)