Minor pep8 adjustments and small cleanup in application.py to not

force the window to show all its widgets