Kernel Density Estimation Python Code