Changing scipy import to within methods