I am creating a rig/skeleton/bones in Blender python, using bpy, here: https://github.com/coderextreme/X3DJSONLD/blob/master/blend/blenderskeleton.py
I was looking at the code and in Blender and I realized that skeleton = bpy.data.objects.new("Armature", bpy.data.armatures.new("Armature"))
looked a little misguided. Does someone have a better suggestion how to add an armature?