readding analyze.py