fn write_or_print(out: &str, sess: &Session)