clean network_simulation.py, callable from run_simulation.py