Bomb proof fit.py against starting without a template
Modify fit.py to try and create a template if it doesn't have one