Copy template.py to target directory automatically