def communicate(self, peer, payload):
    client = None
    for c in self.clients:
        if (c['client-peer'] == peer):
            client = c['client']
    if client:
        client.sendLine(payload.decode('utf-8').replace('\n', '\r\n').encode('utf-8'))
def communicate(self, peer, payload):
    client = None
    for c in self.clients:
        if (c['client-peer'] == peer):
            client = c['client']
    if client:
        client.sendLine(payload.decode('utf-8').replace('\n', '\r\n').encode('utf-8'))