Generate Xml From Dictionary Python Code