fixing analyze.py