How to change the signal Connections properties in Python script?

I confused about signal connections changing.
The same as the picture shown

I want to change the Connections of signal A001 in Python. I tied to using String, append the Object to the Connections list, but all failed.
Thanks a lot if you kwon the way to solve.