call the self.stdout.write method with string 'processing file %s in %s\n' as argument, replacing all the occurrences of '%s' with f and dirpath, respectively.
self . stdout . write ( 'processing file %s in %s\n' % ( f , dirpath ) )