utils: etree to dict translation reorganization
Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch> Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>