A binary tree in python