Kernel Function Example In Python How Do You Convert