The pyWeb literate programming tool is a very simple and flexible tool that allows you to generate a Python source file and markup documentation file in any language (for example in HTML or Latex) from a single source. This assures that documentation actually matches the source code.