in the __compare_table_headers function, the cells are being compared, and not their values, and as there is no __eq__ method implemented for Cell class, it compares if the objects are the same.
Either there needs to be __eq__ in Cell class, or in __compare_table_headers there should be comparison of cell text, and not cell objects