new file:   analysis.py