That's pretty cool getting a method to automate the PureImage program. I've been experimenting with that software for a long while now. It does give some nice results for some shots but also less than stellar results for others. Really depends on how good the source is you want to match and how bad the color cast is in the SE. I've used filmstrips saved as .png's to get whole shots matched quickly.
I also have experimented with Matlab's autocolor scripts that Laserman posted ages ago in one of the other color correction threads. This method produces some very nice results but is not without its own set issues. I haven't found a way to apply it to video clips. And using is frame by frame usually produces color shift/flicker during playback. Also if the sources are really different from one another, noise will be introduced as well.
Here's some results from the Matlab code. As you can see in the sunset shots a lot of noise and missing pixels are introduced. The algorithm also brightens the image to GOUT levels.
And below are some of the Matlab color results but combined with the SE04's luma: