Kernel Density Estimation Python Code For Tic Tac