Scripts and functions needed to determine the beam emittance/divergence thanks to a butterfly study