Added template dependence to convert.py