def _serialize(value):
 if isinstance(value, float):
  return unicode(value).upper()
 elif isinstance(value, bool):
  return unicode(value).lower()
 return unicode(value)

def _serialize ( value ) : if isinstance ( value , float ) : return unicode ( value ) . upper ( ) elif isinstance ( value , bool ) : return unicode ( value ) . lower ( ) return unicode ( value )
serialization wrapper .