substitute '%s' is string 'processing file %s in %s\n' with self.file and self.dirpath, write it to command.stdout.
command . stdout . write ( 'processing file %s in %s\n' % ( self . file , self . dirpath ) )