* change cStringIO to serialization.Writer