 import files;
 import location;
 import string;
+import unix;
 import EQR;
 import R;
 import assert;


(void o) log_start(string algorithm) {
    string ps = join(file_lines(input(param_set)), " ");
    string sys_env = join(file_lines(input("%s/turbine.log" % turbine_output)), ", ");
    string code = code_log_start % (propose_points, max_iterations, ps, algorithm, exp_id, sys_env);
    python_persist(code);
    o = propagate();
}

int max_iterations = toint(argv("it", "5"));
string param_set = argv("param_set_file");
string exp_id = argv("exp_id");

printf("turbine_output: " + turbine_output);


string code_template =
"""
