Parse Xml String In Python Function