All right, here's a version that works, but it's ridiculously complicated and requires all the lights to be numbered in the standard way. (light 1, light 2, etc.) If you have a set that's named in some other way, like NorthEastLight, SouthWestLight, etc., this will not work. I've attached the file here in TXT form. Rename it to P5DelOff.PY or something similar, and try it out. like
My python page
My ShareCG freebies