xml_func.py: simplify(): Added support for custom simplifying functions, which are not hard-coded in simplify()
xml_func.py: simplify(): Added support for custom simplifying functions, which are not hard-coded in simplify()