ENH Use scipy. Better error messages