new_contents: #!/usr/bin/python3.4
  # -*-coding:Utf-8 -*
  '''module to manage antialiasing settings'''
  import xml.etree.ElementTree as xmlMod
  
  class OSA:
  	'''class to manage antialiasing settings'''
  	
  	
  	def __init__(self, xml= None):
  		'''initialize OSA settings with default value or values extracted from an xml object'''
  		if xml is None:
  			self.defaultInit()
  		else:
  			self.fromXml(xml)
  	
  	
  	
  	
  	
  	def defaultInit(self):
  		'''initialize antialiasing settings with default value'''
  		self.enabled = True
  	
  	
  	
  	
  	
  	def fromXml(self, xml):
  		'''initialize antialiasing settings with values extracted from an xml object'''
  		self.enabled = { 'True':True, 'False':False }[xml.get('enabled')]
  		
  	
  	
  	
  	
  	
  	def toXml(self):
  		'''export antialiasing settings into xml syntaxed string'''
  		txt = '<OSA enabled="'+str(self.enabled)+'" />\n'
  		return txt
  	
  	
  	
  	
  	
  	def menu(self, log):
  		'''menu to explore and edit antialiasing settings'''
  		change = False
  		log.menuIn('OSA settings')
  		
  		while True:
  			
  			log.print()
  			
  			self.print()
  			
  			print('''\n\n        Menu :
  1- Switch To Enable Or Disabled OSA
  0- Quit
  
  ''')
  			
  			choice = input('Action?').strip().lower()
  			
  			if choice in ['0', 'q', 'quit', 'cancel']:
  				log.menuOut()
  				return change
  			elif choice == '1':
  				change = True
  				self.enabled = not self.enabled
  			else:
  				log.error('Unvalid menu choice', False)
  		
  	
  	
  	
  	
  	
  	def print(self):
  		'''a method to print preset'''
  		print('Antialiasing :            '\
  					+{ True:'enabled', False:'disabled' }[self.enabled] )
  		
  		if self.enabled:
  			print()
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
subject: implement a setting class for antialiasing settings