fixed window not closing
reformatted main.py for pep8 using: autopep8 -i -a main.py