code: def _remove(self, timer):
          
          assert timer.timer_heap == self
          del self.timers[timer]
          assert timer in self.heap
          self.heap.remove(timer)
          heapq.heapify(self.heap)
docs: Remove timer from heap lock and presence are assumed