Why has b_tag_bins_latex been deleted? It's used in the script, and now it fails. Please put it back!
Perhaps the reason it wasn't parsed by your IDE is its being under [global](https://github.com/BristolTopGroup/DailyPythonScripts/blob/master/src/cross_section_measurement/04_make_plots_matplotlib.py#L244), which can be removed there.