Maya/Python: How to connect constraint weight node variables

I have two joint chains that influence the main joints (IK/FK).

I want to connect the switch attribute from my control to the weight attribute on the constraints that influence the main joint.

Basically I created lists for these constraint weight nodes: IK = IKW, FK = FKW: (M= parent constraints)

#get the constraint weights
for s in M:
    weights = mc.parentConstraint(s, q=True, wal=True)
    IKW.append(weights[0])
    FKW.append(weights[1])
#Connect IK/FK to the parent constraints 1W0 (IK node weight)

for m in M:
    mc.connectAttr('GC.L_Back_Leg_FK', m + '.' + IKW[0])

This obviously does not work because IKW list values do not match ‘m’ and everything just goes fucky there.

Will I need to use zip loop for this? Because this is the outcome that I want

mc.connectAttr('GC.L_Back_Leg_FK', M[0] + '.' + IKW[0])
mc.connectAttr('GC.L_Back_Leg_FK', M[1] + '.' + IKW[1])
mc.connectAttr('GC.L_Back_Leg_FK', M[2] + '.' + IKW[2])

and so on…?