ctypes, restype and arrays

I've been having some problems accessing, as python arrays, an array returned by C code via the ctypes module. The ctypes documentation is not great, but this is.