'new' is obsolte in py3
replace StringIO by BytesIO
iteritems -> items
from __future__ import print_function
fix ctor of custom log formatter to by py3 compatible
minor style fix
py3 texttestrunner requires a warning attribute