updated Ctypes shared memory and fixed import errors