Process: use index() and substr() to detect END_SCRIPT_MARK. I guess this is a little more efficient than using regexp (I didn't do any benchmark, though).
Script: add async option to plot_with() method. add xt/max_parallel.t