Added scipy dependency
Made core/vector fully duck-typed.