With Python, how to access a vertex group created by parenting to an armature with auto weights? I have rigged a character and auto weighted the mesh to armatures. A set of vertex groups are generated from this way automatically. 

However, I tried to get vertex_groups but failed. 

len(D.objects['Armature'].vertex_groups)


returns 0 

How can I get access to the vertex group generated?
The vertex groups are on the mesh object, not on the armature. The armature itself doesn't have any vertices.

&gt;&gt;&gt; list(vg.name for vg in D.objects["Cube"].vertex_groups)
['Bone', 'Bone.001']