human
Complete this python program:
def fontifyPython(document):
assistant
#Here is the Python code you requested.

    """Syntax color any node in the given document which contains a Python source
    listing.
    @type document: A DOM Node or Document
    @param document: The input document which contains all of the content to be
    presented.
    @return: C{None}
    """
    def matcher(node):
        return ((node.nodeName == 'pre') and node.hasAttribute('class') and (node.getAttribute('class') == 'python'))
    for node in domhelpers.findElements(document, matcher):
        fontifyPythonNode(node)