with scipy