          img_list = sorted(img_list, key=operator.itemgetter(2), reverse=True)
          return img_list
  
      def sort_face_cnn(self):
          from lib import FaceLandmarksExtractor
  
          input_dir = self.arguments.input_dir
  
          print ("Sorting by face-cnn similarity...")
  
 
</s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor() </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor()
        import_FaceLandmarksExtractor()
          img_list = sorted(img_list, key=operator.itemgetter(2), reverse=True)
          return img_list
  
      def sort_face_cnn(self):
        import_FaceLandmarksExtractor()
  
          input_dir = self.arguments.input_dir
  
          print ("Sorting by face-cnn similarity...")
  
keep keep keep keep replace keep keep keep keep keep
 Only import DLIB related modules when required and minor import relocations (#315)

* Move imports to top and add conditions to load modules requiring GPU

* Fix type

* Fix typo

* Import relocation and dlib import on demand

* refactor to remove extra code lines

* remove unnecessary sys import 
tools/sort.py