Python 3 printing fixes.