def clearCallback(self, key):
    if (key.value in self.callbacks):
        del self.callbacks[key.value]
def clearCallback(self, key):
    if (key.value in self.callbacks):
        del self.callbacks[key.value]