modified exceptional-points.sage to really take care of overcounting.