The initgroups wrapper has been pushed into the standard library. I don't know if it made it into 3.1, but it will be in 3.2. At this point, it seems unlikely that anyone will be using 3.1 by the time Twisted gets to 3.x, so maintaining a 3.x port of this C code doesn't make much sense.