py3 compatibility (print statement to function)