np.log instead of math.log