And that would be possible wihout writing a nodw! Infact its kindof standard parctice to use empty parents tarnsforms for this kind of stuff.
Constrain a EMPTY transform, see you can animate the offset, ists not by defaulta keyable channel but select teh constarint and make it keyable with channel controll.
Then group your object under the empty constarimned transform! and you can now key the transformas while the contrain is still multiplied in (parenting woudl be exactly what you want).
OR
use 2 constraints if you wnat weighted mutiplys.
Any particular reason why you wish to bang your head to the wall?
But seems to me that your problem might be even more trivial as the same caneasily be accompleished in many other ways too.
Care to describe EXACTLY your problem... so that i dont advice something immersly stupid to you. (se doing how you think it shoudl work and how it works are two different things)