def params_to_strings(params, param_values, app):
 rval = dict()
 for (key, value) in param_values.items():
  if (key in params):
   value = params[key].value_to_basic(value, app)
  rval[key] = str(dumps(value))
 return rval

def params_to_strings ( params , param_values , app ) : rval = dict ( ) for ( key , value ) in param_values . items ( ) : if ( key in params ) : value = params [ key ] . value_to_basic ( value , app ) rval [ key ] = str ( dumps ( value ) ) return rval
convert a dictionary of parameter values to a dictionary of strings suitable for persisting .