Added template.py and started splitting out HTML