Modifing run_montecarlo.py to run several cases.