Update server.py

Added return statement to sendCommand function.