how do i parse xml in python?,print(atype.get('foobar'))