Python: Split NumPy array based on values in the array Python: Split NumPy array based on values in the array numpy numpy