Python framework for simulating events