Added main() function to server.py