templates: bugfix python hierblocks