updated analyze.py with