Changed print function for python 3 compatibility.