Python Add Attribute To Object If Not Exists