Real Time Anomaly Detection Python