A Python3 class for a heap