Change print to function call for Python 3 support