utils: etree to dict translation reorganization

* Adds xml.py to utils to handle custom XML.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>