copied from print_runs_csv.py