old_contents: class Plugin:
  	
  	def __init__(self, args):
  		self.args = args
  
  	def analyze(self, afile):
  		attrs = vars(afile)
  		print('----------------------------------------------')
  		print('\n'.join('%s: %s' % item for item in attrs.items()))
  
new_contents: import json
  
  from distutils.util import strtobool
  
  class Plugin:
  
  	__NAME__ = 'stdout'
  	
  	def __init__(self, args):
  		self.args = args
  
  		# Print JSON objects?
  		try:
  			self.json = strtobool(args.get('json'))
  		except ValueError, AttributeError:
  			self.json = False
  
  	def analyze(self, afile):
  		'''Print the analysis object to stdout.
  
  		This is useful for debugging and for basic logging.
  
  		Args:
  			afile (FileAnalysis): The file to be analyzed.
  
  		Returns:
  			None
  		'''
  		if self.json:
  			print(json.dumps(afile.__dict__))
  		else:
  			attrs = vars(afile)
  			print('----------------------------------------------')
  			print('\n'.join('%s: %s' % item for item in attrs.items()))
  
subject: update stdout plugin