Fix numbagg on python 3