How to create helper groups programmatically with Python

I am trying to create light groups using Python, but I have not been able to found how to do it. I can already create “group.xyz” objects but not “light.xyz” objects.

Any direction?