python wrapper for chaingraph: release the GIL to not freeze the GUI
now catching all exceptions