update stats_server.py with new struct