Python Create Empty Object And Add Attribute For An Event