A small set of script to calculate phase diagrams from tabulated free energies