Moved template out of python file