working fork of Scipy