human
I wrote the below code

    if six.PY3:
        return
    orig_parsetype = mimetools.Message.parsetype
    def parsetype(self):
        if (not self.typeheader):
            self.type = None
            self.maintype = None
            self.subtype = None
            self.plisttext = ''
        else:
            orig_parsetype(self)
    parsetype.patched = True
    if (not getattr(mimetools.Message.parsetype, 'patched', None)):
        mimetools.Message.parsetype = parsetype

What's a good function header?
assistant
#Here's a good function header.

def monkey_patch_mimetools():