Maya python autorigg lip system

hello guys :smiley:
I try to create autorigg Lip system in python but i stucked in one part of script. In this moment the script its working, its simple two buttons one for create guides and other for build.
I got stuck in the part of relating my broad joints to my minor joints, in addition to assigning them a value that I have in my jaw_attributes so that I know that when the joint “C_jaw_JNT” is rotated it has to go down a certain percentage and not 100% to in this way to achieve an open mouth, both for the upper and lowers, could you help me?

this already finished :DDDDDDDDDDDDDDDD