I'd do that via OSC. https://pypi.python.org/pypi/python-osc
I also have been toying with the idea of making a motorized fader OSC console with a raspberry Pi for a while.
you could: use the fill on layer 1 in a clip use the key on layer 2, set layer 2 blend mode to 50 mask an set layer 2 opacity to 100% add a Layer router from the sources to layer 3, and launch it. add a Solid Color to layer 4 set it to 0/brightness to create a black fill over the keyed content, then...
if you saved/overwrote the composition with the effects unconnected then they won't appear again.
You'll have to use a backup comp or an older version.
OBS studio can record and broadcast from syphon sources.
you'll obviously need a powerful enough computer to do the encoding real-time.
Or use a capture card with another computer.
ebay/alibaba
look for pciex16 riser
I don't know if the x1 to x16 version has all pins inside the x16, but the x16 to x16 ribbon should.
or get a bad motherboard as donor
I hope you have a hot air solder, you'll have a bad time with a solder iron.