DTD structure parser
Python2