added patch changeset_87b628ec.diff to "cherry-pick" 87b628ec (BF: numpy 1.7 -- np.where indexes might be read-only, thus operate on a copy then)