python declarative parser for xml and html using lxml