def communicate(s, msg):
    """
    send message to socket and receive response
    :param s Socket Connection: - open socket
    :param msg: message
    :return str - response data
    """
    s.send(msg)
    return s.recv(1024)