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

Changed import from StringIO which was renamed in Python3 only 'io'