xml_func.py: simplify(): Refactored to support processing nodes that are not functions. Changed var names for clarity.
xml_func.py: simplify(): Refactored to support processing nodes that are not functions. Changed var names for clarity.