Use edited python script example for window switching.