bpyob was being accessed on line #3568 without being initialized.
It appears it should just be initialized on line #3566 much like other areas in this file such as:
#3296:
bpyob = node.blendData = node.blendObject = bpy.data.objects.new(name, None) bpycollection.objects.link(bpyob) bpyob.select_set(True)
#3107:
bpyob = node.blendData = node.blendObject = bpyob.copy() # Could transform data, but better the object so we can instance the data bpyob.matrix_world = getFinalMatrix(node, None, ancestry, global_matrix) bpycollection.objects.link(bpyob) bpyob.select_set(True)
#3053:
bpyob = node.blendObject = bpy.data.objects.new(vrmlname, bpydata) bpyob.matrix_world = getFinalMatrix(node, None, ancestry, global_matrix) bpycollection.objects.link(bpyob) bpyob.select_set(True)