Python XML-based template engine with Genshi-like syntax and Jinja-style blocks