@wrongu, yes. just clear self.heap (self.heap = []) and then run self.startheap