binary tree python class and trees homework