ColorCorrectionModel CCM4x3 crashes use of weightsList

no such thing, opencv is in c++

have you tried changing the type to np.float32 ?