bug #920 - converted static HTML to templates + fixed PEP8 error

Please review.
https://gist.github.com/aadamski/81b6db846073f5e0c00c