Release GIL during Cython core routines

I thought I was doing this, but had misunderstood how Cython works. Now
the GIL is actually being released things are going a lot quicker.