created 2d_dmc_mod.py for simulation.