Very nice)) Will do, thanks. But it won't change xy in place (right?) unless I do:
    xy = xy.reshape((xy.shape[0], -1))