Reuse parse_defines from Chameleon
Show right lineno in python syntax errors in XML