def normalize_dictionary(data_dict):
 for (key, value) in data_dict.items():
  if (not isinstance(key, str)):
   del data_dict[key]
   data_dict[str(key)] = value
 return data_dict

def normalize_dictionary ( data_dict ) : for ( key , value ) in data_dict . items ( ) : if ( not isinstance ( key , str ) ) : del data_dict [ key ] data_dict [ str ( key ) ] = value return data_dict
converts all the keys in "data_dict" to strings .