can you write some python code using the pillow, numpy, and scipy libraries to compare two images and generate a cube LUT from it, using the following format for a .cube file:
```
LUT_3D_SIZE 33
LUT_3D_INPUT_RANGE 0.0 1.0
0.000000 0.000000 0.000000
0.047059 0.000000 0.000000
0.101961 0.000000 0.000000
...
```
using scipy.interpolate.UnivariateSpline to interpolate between values in the source image. There should be exactly 3 paragraphs separated by the markdown divider: ***.
user