Bayesian Linear Approximation Python