Trying different StringIO for diff python versions