XYZ to Lab solved

That was a problem of how the power function was written. Better use
math.pow(x,y) thant x**y for x^y.