2.5, pydriver and TrackTo

Hello.
I need setup Constrain (Shrinkwrap) Influence in depends of angle of bone, which constrained to cube with TrackTo. I need decrease Influence when angle changed from rest position (cube are moved). Cannot do it. Sample in file. Help me, please.

Attachments

pydriver_01.blend (279 KB)