Metropolis Hastings Algorithm Python Example