Predictive Maintenance In Python Code