Fixing accidental break
Fixed type comparison in analysis.py