change Ctypes.full_expand to Ctypes.my_nondep_rec_type. Now, no error happened.