Replace print command with print function

This works with any python version 2.6 or higher.