As a fellow scripter and linear-lighting-enthusiast, let me thank you for sharing! Combining this with LightGirl will make for a pretty potent mental ray lighting toolkit.
Thanks for the kind words! :D I've made a few tweaks and will be uploading soon.
Leave a message at the beep...wait for it...:p