Fix flake8 and removed tmpl.txt