fix cStringIO usage.