modified prints to pass python > 3.2 tests