          output_message = "-----------------------------------------------\r\n"
          output_message += " {} ({})\r\n".format(self.output_message,
                                                  len(items_output))
          output_message += "-----------------------------------------------\r\n"
          output_message += "\r\n".join([frame for frame in items_output])
          if self.output == "console":
              for line in output_message.splitlines():
                  logger.info(line)
          if self.output == "file":
              self.output_file(output_message, len(items_output))
 
</s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove             self.alignments.data[key] = sorted_alignments
 </s> add             self.alignments.data[key]["faces"] = sorted_alignments </s> remove         for alignments in self.data.values():
            for alignment in alignments:
 </s> add         for val in self._data.values():
            for alignment in val["faces"]: </s> remove         for alignments in self.data.values():
            for alignment in alignments:
 </s> add         for val in self._data.values():
            for alignment in val["faces"]: </s> remove     def update_legacy_landmarksxy(self):
        """ Update landmarksXY to landmarks_xy and save alignments """
 </s> add     def _update_legacy_landmarksxy(self):
        """ Update legacy `landmarksXY` keys to PEP compliant `landmarks_xy` keys. """
        output_message += "\r\n".join(items_output)
          output_message = "-----------------------------------------------\r\n"
          output_message += " {} ({})\r\n".format(self.output_message,
                                                  len(items_output))
          output_message += "-----------------------------------------------\r\n"
        output_message += "\r\n".join(items_output)
          if self.output == "console":
              for line in output_message.splitlines():
                  logger.info(line)
          if self.output == "file":
              self.output_file(output_message, len(items_output))
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
tools/lib_alignments/jobs.py