Kernel Function Python Example Codes