Update basesimulation.py