cStringIO objects should be seeked to 0 between writes