BUG: Removes iteration over locals (no-no) in mathtext
Merge pull request #2926 from cimarronm/mathtext_remove_locals_iter

BUG: Removes iteration over locals (no-no) in mathtext