Fixed file writing bug in run_throughput.py