Update sendevent.py