Remove ctypes dependency in util

util was using ctypes to do unsigned integer math for systems that don't manage the unsignedness of group ids. Unfortunately, ctypes and SELinux don't always get along. This patch makes all that go away.

Also, there were a couple unreachable lines in the parse_address function that I quickfixed.