fix bug in status detection of analyze.py
add operator flag to analyze.py