tpl: vim:se filetype=html.tornadotmpl:
move some import statements to try ... catch