Encapsulate print command in function

Necessary for Python 3.2.x, tested to still work on Python 2.4.x on
CentOS 5.  Also closes #56