Binary Search Tree Python Code