def __del__(self): Lock.__del__(self) if self.name in Mutex._current_mutex: del Mutex._current_mutex[self.name]