StatusAnalyzer.py stage refactoring