CO Line ratios in Galaxies (Python Code)