Transforming xml to a dictionary of lists