How to set specific bone transform at each frame in an animation sequence?

Hello, I want some help to solve the problem: How to set specific bone transform at each frame in an animation sequence and save it ? Can I realize this function using script like Python or C++? Thank you very much.

I am using a Blutility, it works quite nicely to constraint ik bones.