removed pep8 errors for dialog.py