Updated template.py to load the correct file, not a hardcoded path.