update analysis.py