Some python questions

Is there a way to get certain vertex groups for a python script? This is for real-time.
Also is there a way to seperate these vertices from an object.

For example:


and then some way to seperate them from the object.


what your asking sounds possible, look at the mesh module, vertex groups are stored on the object and mesh level (weights in mesh, vgroup names on object).

you question is a big vague so I cant give a specific example