use numpy >= 1.8