Remove scipy dependency