Update window.py