push scipy imports down to where they are used