MAINT: explicitly check scipy version instead of checking for TypeError