Causal Inference Book, Python code hosted on GitHub (by the author of the Stata kernel). (via @kaz_yos)