activating a vertex group using python

Hello everyone,

Does anyone know what the python command would be to activate a blender vertex group and then create and apply a material to the active vertex group?

Thanks,
brian311