find shrt_max and shrt_min using cython, and add a better default value