Fix for when no scipy is available