Fix DMP in python 2
Pep8