removed usage of np.ctypeslib to avoid warnings on some machines