docs: def addtobase(subject, base_suffix):
    """
    Adds the string *base_suffix* to the basename of *subject*.
    """
  
    if not base_suffix:
      return subject
    base, ext = os.path.splitext(subject)
    return base + base_suffix + ext