          # Override this for custom arguments
          return parser
  
      def process(self):
          import threading
          self.stop = False
          self.save_now = False
  
          thr = threading.Thread(target=self.processThread, args=(), kwargs={})
          thr.start()
 
</s> remove         self.lock = Lock()
 </s> add         self.lock = threading.Lock() </s> remove         from lib import FaceLandmarksExtractor
 </s> add         import_FaceLandmarksExtractor()
          # Override this for custom arguments
          return parser
  
      def process(self):

          self.stop = False
          self.save_now = False
  
          thr = threading.Thread(target=self.processThread, args=(), kwargs={})
          thr.start()
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 
scripts/train.py