  
      def normalize(self):
          """ Compile all original and normalized alignments """
          logger.debug("Normalize")
          count = sum(1 for val in self.alignments.data.values() if val)
          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
          for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
              val = self.alignments.data[key]
 
</s> remove             val = self.alignments.data[key]
 </s> add             val = self.alignments.data[key]["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         """ Return current faces count """
        retval = sum(len(faces) for faces in self.data.values())
 </s> add         """ int: The total number of faces that appear in the alignments :attr:`data`. """
        retval = sum(len(val["faces"]) for val in self._data.values()) </s> remove                          for faces in self.data.values()
                         for face in faces)
 </s> add                          for val in self._data.values()
                         for face 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"]:
        count = sum(1 for val in self.alignments.data.values() if val["faces"])
  
      def normalize(self):
          """ Compile all original and normalized alignments """
          logger.debug("Normalize")
        count = sum(1 for val in self.alignments.data.values() if val["faces"])
          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
          for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
              val = self.alignments.data[key]
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