import StringIO from six.moves