python: xml_parsers now store reference to a pkg object while parsing to the object
tests: Add new tests for XML parsers.