Fix usage of old numpy API in the pxd.