fix np int type issue in cython, #26