IPO curves and python

Hi everybody. I have a question about this:
I have a IPO animation and I want to get the diference between two frames for one bone. Is it possible to do it with python? After geting the result of compare i want to react on it with moving another part of armature. Does anyone can help me please?