old_contents: import color
  
  def parse(mat_node):
      materials = []
      for node in mat_node:
          materials.append(Material(node))
  
  
  class Material:
      ''' it’s a material
      '''
  
      def __init__(self, node):
          for c in node:
              if c.tag == 'ambient':
                  self.ambient_color = color.parse(c[0])
                  self.ambient_color *= float(c.attrib['factor'].replace(',', '.'))
              elif c.tag == 'diffuse':
                  self.diffuse_color = color.parse(c[0])
                  self.diffuse_color *= float(c.attrib['factor'].replace(',', '.'))
              elif c.tag == 'specular':
                  self.specular_color = color.parse(c[0])
                  self.specular_color *= float(c.attrib['factor'].replace(',', '.'))
              elif c.tag == 'reflection':
                  self.reflection_color = color.parse(c[0])
                  self.reflection_color *= float(c.attrib['factor'].replace(',', '.'))
  
new_contents: import color
  
  def parse(mat_node):
      materials = []
      for node in mat_node:
          materials.append(Material(node))
  
  
  class Material:
      ''' it’s a material
      '''
  
      def __init__(self, node):
          for c in node:
              if c.tag == 'ambient':
                  self.ambient_color = color.parse(c[0])
                  self.ambient_color *= float(c.attrib['factor'])
              elif c.tag == 'diffuse':
                  self.diffuse_color = color.parse(c[0])
                  self.diffuse_color *= float(c.attrib['factor'])
              elif c.tag == 'specular':
                  self.specular_color = color.parse(c[0])
                  self.specular_color *= float(c.attrib['factor'])
              elif c.tag == 'reflection':
                  self.reflection_color = color.parse(c[0])
                  self.reflection_color *= float(c.attrib['factor'])
  
subject: Remove replacement of commas by points