title: Releasing Python GIL while in C++ code
body: <p>I've got a library written in C++ which I wrap using SWIG and use in python. Generally there is one class with few methods. The problem is that calling these methods may be time consuming - they may hang my application (GIL is not released when calling these methods). So my question is: </p>
  
  <p>What is the simplest way to release GIL for these method calls? </p>
  
  <p>(I understand that if I used a C library I could wrap this with some additional C code, but here I use C++ and classes)</p>