python code for regularised solution to BRDF kernels.