moved stuff in heap.py to __init__.py