Update event.py

reveting to the event.py file to the same as frappe