code: def strip_exts(s, exts):
      
      f_split = os.path.splitext(s)
      if f_split[1] in exts:
          return f_split[0]
      else:
          return s
docs: Given a string and an interable of extensions, strip the extenion off the
      string if the string ends with one of the extensions.