added analyze_errors.py