Change parse_tree to return a list rather than a dict.