Only import numpy after dependency check
Merge pull request #1042 from stefanv/setup_numpy_dependence

Only import numpy after dependency check