cleaning up replclient.py