How to repeat a cyclic animation of an object/armature from command line with Blender API
Maybe it'll help you
**&gt;&gt;In the Timeline panel, display the layer property containing the keyframes you want to copy.


Select one or more keyframes.




Choose Edit &gt; Copy.




In the Timeline panel containing the destination layer, move the current-time indicator to the point in time where you want the keyframes to appear.**