OK, I tried your script. Looks interesting.
It works with my modded MidiMixControl script, until I actually assign any Midimix button to a plugin parameter. Then your script gives me an error and I see an empty window.
So... Would you like to look at my mod and test it by yourself?