Updated analyze.py