fixed analyze.py