A Software Framework For Bayesian Uncertainty Quantification, Optimization, And Reinforcement Learning