Linux

added `import StringIO if `import io` fails
added `io = StringIO`