import socket

skt_c = socket.socket()

ip_port = ('localhost', 8338)
skt_c.connect(ip_port)

msg = skt_c.recv(1024).decode('utf-8')
print(msg)

ret = input('>').encode('utf-8')
skt_c.send(ret)

skt_c.close()