Free Kernel Execute Function Python