Python Event Driven Programming Vs Procedural Safeguards