Link a Sensor to a Controller by script

Hello,

With the little experience I have, I can not solve the following problem in Blender (not BGE):

Link a “Sensor” to a “Controller” by script.

Thank you in advance for your help.