Removed all the tabs and replaced with spaces (grr, indentation errors)
THIS WORKS for median analysis and network, cpu, disk analysis.
Also removed tabs and replaced with spaces.
THIS WORKS with median runtime and median network, cpu, disk analysis.
I added another function, simulate_return_network_cpu_disk, to run things using the median network, cpu, disk time for the tasks of each stage.

I also removed the tabs and fixed it into spaces.
I started using a key to indicate which analysis I am doing, and can specify to trigger the median runtime analysis, the median network, cpu, disk, analysis, or other analyeses (they can be added easily).

THIS WORKS to simulate both the median runtime and the median network,cpu,disk time.
WHOOO