revert changes to mi/core/tcp_client.py