Use apache.log_error instead of sys.stderr.write

as sys.stderr.write messages are not relayed via apache when apache
is using syslog for ErrorLog.