Python Program For Binary Tree Traversal Java