BRDF kernels Python code