pep8 and removed plot on ok button