docs: def parse_val(cfg,section,option):
      """extract a single value from .cfg"""
      vals = parse_vals(cfg,section,option)
      if len(vals)==0:
          return ''
      else:
          assert len(vals)==1, (section, option, vals, type(vals))
      return vals[0]