Add logg debug
Pep8 compliance