python interface; bugfixed with respect to scipy