how to print a tree in python?,print_tree(shame)