Backout 88033dae
Fixed: python2 -> python
Code cleanup.
Cap maximum tree recursion.
Code cleanup.
Changed stop tokens handling.
Redefined stoptokens.
Changed cdb key name.
Fixed parser error.
Improved failsafe.
Code cleanup and documentation.
XML tag handling improved.
Fixed: infinite loop with xml.
More failsafe.