MERL-112 python interface; release GIL for all potentially long operations

Not releasing the GIL causes issues on the python side as e.g. dask workers can be killed for stalling too long as a result etc.

Merge request reports

Loading