split event.py and window.py from _wx.py