Parse xml from python library