Added template.py
Added decorators