code: def extract_mime(self, mime, def_mime='unk'):
          
          self['mime'] = def_mime
          if mime:
              self['mime'] = self.MIME_RE.split(mime, 1)[0]
              self['_content_type'] = mime
docs: Utility function to extract mimetype only
          from a full content type, removing charset settings