class MyHTMLWriter(html4css1.Writer):
    """
  This docutils writer will use the MyHTMLTranslator class below.
  """

def __init__(self):
    html4css1.Writer.__init__(self)
self.translator_class = MyHTMLTranslator


class MyHTMLTranslator(html4css1.HTMLTranslator):

    def visit_paragraph(self, node):
        pass
How to get restructuredText to add a class to every html <p> tag?