Using the Python code parser to parse (in and out) XML [1]