import StringIO from six (a typo)