Fixed import: 'from StringIO ...' -> 'from io ...'