python3 compat: remove lots of Python 2.5 and earlier dependent code; use print() function syntax
python3 compat: `raise E(arg)` syntax

.with_traceback() is not backward compatible, so left to on-demand 2to3 run