can you print to stderr instead:
print >> sys.stderr, '...'
(single quotes too)