Added ALERT
Fixed pyflakes warnings