add a template.py file for plotting.