Python code for QCD analysis and other things