chi_b study python code