import heapq as hq def raw_heap(rawheap): hq.heapify(rawheap) return rawheap