.. todo:: (OPT) Cleanup of unused undefined variables.
.. todo:: (OPT) Better variable name checking (no name '.'-structural prefix of another)
-.. todo:: (OPT) Implemet "subtree" listing.
+.. todo:: (OPT) Implement "subtree" listing.
"""
import types, itertools, re, bisect