Kernel Function Example In Python An Array