Update server.py

Bug fixed