Remove unnecessary StringIO

`StringIO` wasn't needed.