Update analysis.py

Modification of AB09BD