'Populate the heap with the data contained in the schedule.'

def populate_heap(self, event_t=event_t, heapify=heapq.heapify):

    self._heap = [event_t((self._when(e, e.is_due()[1]) or 0), 5, e) for e in values(self.schedule)]
    heapify(self._heap)
