Update matrixServer.py

some clean up