Pylint fixes for anomaly.py
Pylint fixes for anomaly tests.