for py2 <-> py3 compatibility printing to stdout