code: def filename_addstring(filename, text):
      
      fn, ext = os.path.splitext(filename)
      return fn + text + ext
docs: Add `text` to filename, keeping the extension in place
      For example when adding a timestamp to the filename