def remove_key_from_stealable(self, ts):
    result = self.key_stealable.pop(ts, None)
    if (result is None):
        return
    (worker, level) = result
    try:
        self.stealable[worker][level].remove(ts)
    except KeyError:
        pass
    try:
        self.stealable_all[level].remove(ts)
    except KeyError:
        pass
def remove_key_from_stealable(self, ts):
    result = self.key_stealable.pop(ts, None)
    if (result is None):
        return
    (worker, level) = result
    try:
        self.stealable[worker][level].remove(ts)
    except KeyError:
        pass
    try:
        self.stealable_all[level].remove(ts)
    except KeyError:
        pass