XMLElement and XMLDoc python wrapper class