  #!/usr/bin/env python3
  """
  A tool that allows for sorting and grouping images in different ways.
  """
  import os
  import sys
  import operator
  from shutil import copyfile
 
</s> remove from importlib import import_module
 </s> add import logging </s> remove import sys
 </s> add import logging
import logging
  #!/usr/bin/env python3
  """
  A tool that allows for sorting and grouping images in different ways.
  """
import logging
  import os
  import sys
  import operator
  from shutil import copyfile
keep keep keep add keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
tools/sort.py