Bayesian Models for Astrophysical Data: Using R, JAGS, Python, and Stan