Added "fix" for segfault when using wxPython 3+