This is the WIP (work in progress) to provide python support for the tree format of the $mol frontend framework. Use it like this:
from treearbo import string_to_tree, tree_to_string
tree_string = r"""user
name \Jin
age 35
hobby
\kendo
\dance
\role play
"""
tree = string_to_tree(tree_string)
assert tree_string == tree_to_string(tree)