A binary heap written in Python