Fix PyKat 1.1.331 unit tests for Python3
I'm getting errors when trying to run the unit tests with Python3 (3.5, Debian Stretch), import StringIO
fails.
Can bits from http://python-future.org/compatible_idioms.html#stringio be merged somehow to make this work?