necessary changes for run_a_simulation to work with pypowersim_wrapper