dialogs.py, wizard.py PEP8 errors fixed

Due to pyflakes some code in dialogs.py and wizard.py was changed.