Modified XML<-> Python data handling