echoclient python code