'Unsubscribe a callback to free object references to enable GC.'

def unsubscribe(self, callback):

    with self.lock:
        for v in self.subscriptions.values():
            if (callback in v):
                v.remove(callback)
