make scipy an optional dependency