Moded dp.py