add event_server.py to support stats data