American Airlines and pilots work out deal to save holiday flights