PEP 8 compliance. Improved weightScale calculation by ignoring 0-weight pixels and using sigma-clipping mode calculation. (improvement over MEDRMS)