Python package to convert LaTeX to DOM