move scipy import into method