                  temp_list.append(
                      [x, self.calc_landmarks_face_yaw(np.array(d[0][1]))])
          elif group_method == 'group_hist':
              temp_list = [
                  [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256])]
                  for x in
                  tqdm(self.find_images(input_dir),
                       desc="Reloading",
                       file=sys.stdout)
              ]
          else:
 
</s> remove                     [x, self.calc_landmarks_face_yaw(np.array(d[0][1]))])
 </s> add                     [img,
                     self.calc_landmarks_face_yaw(np.array(landmarks[0][1]))]) </s> remove             [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256])]
            for x in
 </s> add             [img, cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
            for img in </s> remove             [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256]), 0]
            for x in
 </s> add             [img,
             cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256]), 0]
            for img in </s> remove             for x in tqdm(self.find_images(input_dir),
                          desc="Reloading",
                          file=sys.stdout):
                d = face_alignment.Extract(
                    input_image_bgr=cv2.imread(x),
 </s> add             for img in tqdm(self.find_images(input_dir),
                            desc="Reloading",
                            file=sys.stdout):
                landmarks = face_alignment.Extract(
                    input_image_bgr=cv2.imread(img), </s> remove             temp_list = [[x, face_recognition.face_encodings(cv2.imread(x))]
                         for x in
                         tqdm(self.find_images(input_dir),
                              desc="Reloading",
                              file=sys.stdout)]
 </s> add             temp_list = [
                [img, face_recognition.face_encodings(cv2.imread(img))]
                for img in tqdm(self.find_images(input_dir),
                                desc="Reloading",
                                file=sys.stdout)]
                [img,
                 cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
                for img in
                  temp_list.append(
                      [x, self.calc_landmarks_face_yaw(np.array(d[0][1]))])
          elif group_method == 'group_hist':
              temp_list = [
                [img,
                 cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
                for img in
                [img,
                 cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
                for img in
                  tqdm(self.find_images(input_dir),
                       desc="Reloading",
                       file=sys.stdout)
              ]
          else:
keep keep keep keep replace replace keep keep keep keep keep
 Sort tool bugfixes and linting 
tools/sort.py