numpy should be imported before scipy, as long as scipy is in