Changes applied to use make_WFMalarms.py instead of its previous shell
version.
Improved in readability, stability, mantainability and performance.