      @staticmethod
      def estimate_blur(image):
          if image.ndim == 3:
              image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  
          blur_map = cv2.Laplacian(image, cv2.CV_64F)
          score = np.var(blur_map)
 
</s> remove     def calc_landmarks_face_pitch(fl):  # unused
        t = ((fl[6][1] - fl[8][1]) + (fl[10][1] - fl[8][1])) / 2.0
        b = fl[8][1]
        return b - t
 </s> add     def calc_landmarks_face_pitch(flm):
        """ UNUSED - Calculate the amount of pitch in a face """
        var_t = ((flm[6][1] - flm[8][1]) + (flm[10][1] - flm[8][1])) / 2.0
        var_b = flm[8][1]
        return var_b - var_t </s> remove             img_list[i + 1] = img_list[j_min_score]
            img_list[j_min_score] = img_list[i + 1]

 </s> add             (img_list[i + 1],
             img_list[j_min_score]) = (img_list[j_min_score],
                                       img_list[i + 1])
        """ Estimate the amount of blur an image has """
      @staticmethod
      def estimate_blur(image):
        """ Estimate the amount of blur an image has """
          if image.ndim == 3:
              image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  
          blur_map = cv2.Laplacian(image, cv2.CV_64F)
          score = np.var(blur_map)
keep add keep keep keep keep keep
 Sort tool bugfixes and linting 
tools/sort.py