you have to append newlines when using sys.stderr.write