Add extract_betas.py.