sys.stderr = open('c:\\temp\\gimpstderr.txt', 'w')
sys.stdout = open('c:\\temp\\gimpstdout.txt', 'w')

def MyUsefulFilter(img, drw):
    print('hello world')
How do I output info to the console in a Gimp python script?