Return a tuple (rgid, egid, sgid) denoting the current process’s real, effective, and saved group ids.
os.getresgid()