sp is not really standard. I'd use import scipy and scipy.__version__ below