deal xml with python