docs: def guess_media_type(filepath):
      """Returns the media-type of the file at the given ``filepath``"""
      o = subprocess.check_output(['file', '--mime-type', '-Lb', filepath])
      o = o.strip()
      return o