Python files and jupyter notebooks used for the calculation in the manuscript