Update server.py

without str worked on linux, not on mac