py2/3 even more print and exception compat for tests