code: def exttype(suffix):
      
      def inner(s):
          if s == '':
              return s
          first, last = os.path.splitext(s)
          return first + suffix
      return inner
docs: Type for use with argument(... type=) that will force a specific suffix
      Especially for output files, so that we can enforce the use of appropriate
      file-type specific suffixes