How can I script moving bone constraints up the constraints stack?
This can now be done without bpy.ops.

bone.constraints.move(from_index, to_index)

https://docs.blender.org/api/current/bpy.types.ObjectConstraints.html?highlight=constraints%20move#bpy.types.ObjectConstraints.move