A Python3 class for a binary tree