Imporved XML parsing

Now parsing the XML returned by the API with ElementTree instead of ugly
regular expressions