Fix setup.py for templates