how to deal with xml in python