Reworked xml parsing, map the whole xml to a python structure, hopefully it will be easier to navigate in that.