Moving template constructor inside blox/template.py