convert orderedDict into dict in function parseXML