use six for stringIO