[Python 3]: Fixes for StringIO and removed semi-colons.