pythonで標準エラー出力

perlだとwarnだけどpythonだと

sys.stderr.write("なんか書く")

となる。