fixing setup.py to include resources in templates and exclude tests