python: xml_parser: Callbacks interface is similar as c interface since now.