heap = [5, 8, 0, 3, 6, 7, 9, 1, 4, 2]heapify(heap)print heapheapreplace(heap, 0.5)print heapprint heapreplace(heap, 10)print heap