Fixed small mistake in analyze.py method