Splitting large multi class dataset using leave one out scheme into train and test
Never mind! Found it! 

just doing a,indices,counts=np.unique(y) will return the starting indices of each unique value in indices, and then you can just slice this off as x_test=X[indices], and remember to delete it using np.delete(X,indices)