Rewrite sum_if_gt and sum_if_lt signatures to work with earlier versions of cython