Fixed whitespace errors in lib/template_registry.py