Correct python output XML