Minor fixes in clienthandler.py