document-tree
fault-tolerant Python3 package for searching, navigating, and modifying LaTeX documents
converts LaTeX into a Python parse tree, allowing navigation using the default or a custom hierarchy
A parser, document tree, and transformation for "reasonable" LaTeX documents