title: Creating HTML in python
body: <p>I am looking for a way to create html files dynamically in python.  I am writing a gallery script, which iterates over directories, collecting file meta data.  I intended to then use this data to automatically create a picture gallery, based on html.  Something very simple, just a table of pictures.  </p>
  
  <p>I really don't think writing to a file manually is the best method, and the code may be very long.  So is there a better way to do this, possibly html specific?</p>