Moved the index template out of the python file.