Moving to use sys.stderr.write instead of just printing