Please find 2 zip folders: (1) Mars_DH_Model contains a scientific python script used to explore Martian water loss and history in Scheller et al. (2021); Science. (2) Mars_KINETICS_Model contains all files that include input, output, equations, and a data exploration script used for modelling past hydrogen escape rates in Scheller et al. (2021); Science through an adaptation of KINETICS (original software from Allen et al., 1981 and Nair et al., 1994). Read the readme and comments to learn how to use any of the scripts and to understand data formats.