switched from c-style object orientation to pythonic object orientation for xml parser