Use ndiff instead of compare in difflib