#event-driven architecture python