Python histogram best fit line. def func(x, a, b): return a*x + b scipy.