allowing members of a group to kill a process

I've written a python program where I want to allow members of a specific group the ability to kill it, and I'm not sure how to do it. I've been looking at the setuid() and setgid() and similar functions in the os module, but haven't been able to get them to work. I can't seem to change the uid or gid of the running process at all.

I currently don't have any sudo permissions.

Anyone have a good idea of how to do this? I was thinking of having a couple wrapper scripts that would start/kill the process where they would use the setuid/setgid() functions, but as of yet to no avail.

Thanks

The setuid/setgid permission bits would need to be set on the binary for this to work as a non-root user.