make print 'statements' into print 'function calls' so they work with py3