made scipy dependency optional