Make StringIO import 2.7 friendly