Is there a way to move a keyframe using Python (change the frame at which the keyframe is set)?
The keyframe already exists. I need to access it and move it, with the script.
This is not hard:
bpy.data.actions[aname].fcurves[i].keyframe_points[j].co = fr1
The tricky part is picking the right
keyframe_points[j] if there are more than one. You'll have to check
fcurve[i].data_path and (if it's a vector data_path like location or rotation*)
fcurve[i].array_index to make sure you're altering the right fcurve.