Fixing python struct return types in C code.