py2/3 compatible print functions