def METHOD_NAME(self, tag, attributes=[]):
    # Write an XML start tag with optional, unencoded, attributes.
    # This is a minor speed optimization for elements that don't
    # need encoding.
    for key, value in attributes:
        tag += ' %s="%s"' % (key, value)
    self.fh.write("<%s>" % tag)