added sim.py