code: def map_field(fn, m) :
      
      if m is None:
          return fn
      if fn in m:
          return m[fn]
      else:
          return fn
docs: Maps a field name, given a mapping file.
      Returns input if fieldname is unmapped.