import socket
import threading
import time
import pickle 
import sys
import datetime 
import os

HOST                = 'rpi2.local'
PORT                = 8766
MAX_CLIENTS         = 2
LISTENING_TIME_OUT  = 1.0

def log(fr, to, msg):
    ''' print log of happened communication '''
    print(str(fr) + ' > ' + str(to) + ' : ' + str(msg))
import socket
import threading
import time
import pickle 
import sys
import datetime 
import os

HOST                = 'rpi2.local'
PORT                = 8766
MAX_CLIENTS         = 2
LISTENING_TIME_OUT  = 1.0

def log(fr, to, msg):
    ''' print log of happened communication '''
    print(str(fr) + ' > ' + str(to) + ' : ' + str(msg))
print log of happened communication