Sounds like a startup needs to start start developing and licensing traffic light software to municipalities. Seems reasonable enough to me.
The best bet would probably be to get a forward-thinking city to experiment with this in a small area and then go from there.
It would not be hard to put in a physical interlock so both lights could not be simultaneously green, regardless of what the software commands. I don't believe this is a significant fatality risk.