first commit heap.py