I was able to access all bones but I am unable to modify them. My current code gives me an error of AttributeError: . . . "Bone" is read-only which is consistent with the documentation.
So I guess there is another way to access and actually modify them.
May I know how?
import bpy
bones = bpy.data.armatures['Deformation'].bones
for bone in bones:
bone.use_connect = True # line that gives the error