Added io as a fallback for StringIO or Python 3