Create a new file "event.py" with an event class, to encapsulate all of the event stuff.