title: Generating HTML documents in python
body: <p>In python, what is the most elegant way to generate HTML documents.  I currently manually append all of the tags to a giant string, and write that to a file.  Is there a more elegant way of doing this?</p>