switch from test py to tmpl