          if log_changes:
              def renaming(src, output_dir, i, changes):
                  src_basename = os.path.basename(src)
  
                  __src = os.path.join(output_dir,
                                       '{:05d}_{}'.format(i, src_basename))
 
</s> remove 
            return renaming

 </s> add  </s> remove 
                return process_file
 </s> add         return process_file </s> remove             except FileNotFoundError as e:
                print(e)
 </s> add             except FileNotFoundError as err:
                print(err)
                """ Rename files  method if logging changes """
          if log_changes:
              def renaming(src, output_dir, i, changes):
                """ Rename files  method if logging changes """
                  src_basename = os.path.basename(src)
  
                  __src = os.path.join(output_dir,
                                       '{:05d}_{}'.format(i, src_basename))
keep add keep keep keep keep
 Sort tool bugfixes and linting 
tools/sort.py