hmmmm, when the target is a different language, other than experience I don't seem to gain anything for simple operations...
"""#Python expansion
for name in "c_foot_ik.r,c_foot_ik.l,c_hand_ik.r,c_hand_ik.l,c_root_master.x,c_spine_03.x,c_head.x,c_arms_pole.r,c_arms_pole.l".split(","):
var_name = name.replace(".","_")
print(f"{var_name} = Bone(\"{name}\")")
"""
""";;;CL expansion
(loop for x in (uiop:split-string "c_foot_ik.r,c_foot_ik.l,c_hand_ik.r,c_hand_ik.l,c_root_master.x,c_spine_03.x,c_head.x,c_arms_pole.r,c_arms_pole.l" :separator ",")
do (format t "~a = Bone(\"~a\")~%" (substitute #\. #\_ x) x))
"""