Added python3 compatibility: replaced print to print() function

Added python 3 compatibility.