switch to Python 3 style print function