PEP8 fixes to cobbler/template_api.py