Move formatting to template

This is really nice if I may say so myself!

Rather than have a bunch of Python code where you write all the

TODO: Add error handling in case they misspel any of the variable names.