Replaced print statements with print function.

This is needed for Python3 compatibility.

Change-Id: Iadd21e4b3a936b601a69f1db2aba8e1597f13fc3
Merge "Replaced print statements with print function."