Trying to put in scipy