def clean_data_container(data_container):
 result = []
 for (key, value, path, setter) in data_container.iter_setters():
  if value.isdigit():
   _type = 'number'
  else:
   _type = 'string'
  result.append(('%s=%s' % (key, _type)))
 return '&'.join(result)

def clean_data_container ( data_container ) : result = [ ] for ( key , value , path , setter ) in data_container . iter_setters ( ) : if value . isdigit ( ) : _type = 'number' else : _type = 'string' result . append ( ( '%s=%s' % ( key , _type ) ) ) return '&' . join ( result )
a simplified/serialized version of the data container .