def __init__(self): Wheel.__init__(self, 'TransportWheels') self.base_method = 'rotate around the axis in the vertical plane' # Creation of the dictionary to write object data #to a file in json and XML formats: self.key_value = collections.OrderedDict( zip(('classes', 'form', 'base_method', 'material', 'components','types'), ('TransportWheels(Wheel)', self.form, self.base_method, self.material, self.components, random.choice(self.types)) ) )