reforked and changed server.py