more use of np.asarray and other tidying