xml response to python dict, and testing it