Finish removing ctypes