Use 'print' as a function

This is a first step to python3 compatibility