Found an interesting project yesterday for legal document generation: Docassemble. Many years ago I hacked together a similar engine using YAML, Markdown and Ruby; this uses Python instead. Glad someone went the extra mile to package this for others.