Compatibility for old scipy