Fixed some flake8 / pep8 errors with our tesora template tags
file