Python module to minimize redundant error messages from scripts run by cron