Python implementation to perform a Statistical Energy Analysis