Kernel Function Example In Python Mean