Python Print Using Format Python Binary Tree Traversal