MAINT: make it work with normal scipy versions