Don't use ordered fields in XML API
XML and Python dict don't guarantees special order in fields on one level of hierarchy. But Plesk waiting only special ordered XML fileds, For What? Dictionary is a key-value store! It doesn't need special order of keys for reading his values!
You can see example on python-pleskapi http://pastie.org/10027469
XML API of Plesk has some sets which require order and some which don’t. While dictionaries in Python are unordered by their nature, it is Python specific issue and not XML specific, i.e. PHP hash arrays remain ordered.
We can suggest using other way of working with XML. Seems like there are solutions which respect order of XML elements – SAX, minidom, ElementTree