#!/usr/bin/python from docutils.core import publish_parts parts = publish_parts(open("sponsoring").read(), writer_name="html") f = open("sponsorship/index.html", "write") f.write("""