fix analyze.py for single process output