Only import numpy after dependency check