code: def make_keys_safe(dct):
      
      result = {}
      for key, val in dct.items():
          key = key.replace('-', '_')
          if key in keyword.kwlist:
              key = key + '_'
          result[key] = val
      return result
docs: Modify the keys in |dct| to be valid attribute names.