clean event_server.py