numpy assertion