MAINT: in kl_div rewrite log(x/y)->log(x)-log(y)