Common utilities in utils.py and separate run_sim.py