python 2 compatibility for print function