dp.py working properly