Is there a way to call wxPyBeginBlockThreads/wxPyEndBlockThreads from wxPython?

Hi.
I experience segmentation faults at PyObject_Call’s when my Python input listener is called (I use SWIG to generate Python wrapper over C++ code).
I suspect it might be this: http://stackoverflow.com/questions/11435760/python-callback-from-swig-pyobject-call-segfault
Is there any way to call these or similar functions in wxPython?
Thanks.