old_contents: #!/usr/bin/env python3
  #
  # marathon_group.py: generate a Marathon Service Group out of a list of containers
  #
  # Author: Fernando Sanchez [ fernando at mesosphere.com ]
  
  import json
  import sys
  import argparse
  
  def create_group ( name, containers ):
  	"""
  	Creates a marathon group taking a list of containers as a parameter.
  	If the list has a single member if returns the member.
  	"""
  
  	#TODO: If the input is not a list, return null
  
  	#TODO: If the input list has a single member, return it
  
  	output = '{ 			\
  	  "id": "'+name+'",		\
  	  "apps": '+containers+'\
  	  }'
  
  	return str(output) 
  
  if __name__ == "__main__":
  
  	#parse command line arguments
  	parser = argparse.ArgumentParser(description='Convert a list of containers to a Marathon Service Group.', \
  		usage='marathon_group.py -i [container_list_filename] -n [group_name]'
  		)
  	parser.add_argument('-i', '--input', help='name of the file including the list of containers', required=True)
  	parser.add_argument('-n', '--name', help='name to be given to the Marathon Service Group', required=True)	
  	args = vars( parser.parse_args() )
  
  	#remove the trailing \n from file
  	containers = ""
  	for line in open( args['input'], 'r' ):
  		containers += line.rstrip()
  #	print ( "** DEBUG: containers is \n {0}".format(containers))
  	print( create_group( args['name'], containers ) )
  	sys.exit(0)
  
  
new_contents: #!/usr/bin/env python3
  #
  # marathon_group.py: generate a Marathon Service Group out of a list of containers
  #
  # Author: Fernando Sanchez [ fernando at mesosphere.com ]
  
  import json
  import sys
  import argparse
  
  def create_group ( name, containers ):
  	"""
  	Creates a marathon group taking a list of containers as a parameter.
  	If the list has a single member if returns the member.
  	"""
  
  	#TODO: If the input is not a list, return null
  
  	#TODO: If the input list has a single member, return it
  
  	output = '{ 			\
  	  "id": "'+name+'",		\
  	  "apps": '+containers+'\
  	  }'
  
  	return str(output) 
  
  if __name__ == "__main__":
  
  	#parse command line arguments
  	parser = argparse.ArgumentParser(description='Convert a list of containers to a Marathon Service Group.', \
  		usage='marathon_group.py -i [container_list_filename] -n [group_name]'
  		)
  	parser.add_argument('-i', '--input', help='name of the file including the list of containers', required=True)
  	parser.add_argument('-n', '--name', help='name to be given to the Marathon Service Group', required=True)	
  	args = vars( parser.parse_args() )
  
  	#remove the trailing \n from file
  	containers = ""
  	for line in open( args['input'], 'r' ):
  		containers += line.rstrip()
  	print( create_group( args['name'], containers ) )
  	sys.exit(0)
  
  
subject: remove debug message