Bugfix for wxPython 3