Use print as a function only

For Python3 compatibility