Python: Unlock GIL inside synchronous calls