Python implementation of the calculation of the acoustic entropy