l2/converter xml->py nested loops