def get_root_bone(bones):
    for bone in bones:
        if (bone.parent is None):
            return bone
def get_root_bone(bones):
    for bone in bones:
        if (bone.parent is None):
            return bone