hopefully fixed python crashing on subwindow open