Python Compare All Elements Roofing