def emit_message(message, stream=None):
 if (stream is None):
  stream = sys.stderr
 stream.write(('%(message)s\n' % vars()))
 stream.flush()

def emit_message ( message , stream = None ) : if ( stream is None ) : stream = sys . stderr stream . write ( ( '%(message)s\n' % vars ( ) ) ) stream . flush ( )
emit a message to the specified stream .