speedup for intspec by using numpy and fortran instead of python-sum
added range arg to intspec