Fix python crash on finalizing
GC full major collection prevents dangling references on Python objects to be collected after Python unloading, which led to segmentation fault.
GC full major collection prevents dangling references on Python objects to be collected after Python unloading, which led to segmentation fault.