fix-tests
Python 2/3 compat: StringIO
Python 2/3 compatibility: from __future__ import print_function