Update app.py

FIX condition for xml in new window.