import socket
  
hostname, sld, tld, port = 'www', 'integralist', 'co.uk', 80
target = '{}.{}.{}'.format(hostname, sld, tld)

# create an ipv4 (AF_INET) socket object using the tcp protocol (SOCK_STREAM)
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

# connect the client
# client.connect((target, port))
client.connect(('127.0.0.1', 13370))

# send some data (in this case a HTTP GET request)
server_request = str(raw_input("tell me what you want: "))
client.send(server_request)
print("sent: " + server_request)
# receive the response data (4096 is recommended buffer size)
response = client.recv(4096)

print response