One could create the properties list in one go: properties = [PropertyValue() for i in range(3)] And then fill it in: properties[0].Name = ... properties[0].Value = ...