Not clear why you initialize ```ddpt``` in this method. I would extend ```__init__``` for this aim.