Import cStringIO
cStringIO.StringIO()
should be : Import six from six.moves import cStringIO
For Python3 compatible.
Import cStringIO
cStringIO. StringIO( )
should be :
Import six
from six.moves import cStringIO
For Python3 compatible.