def t_connection(host, port, d): start = time.time() make_connection(host, port, d) print d, 'took', time.time() - start
def t_connection(host, port, d): print 'sending', d print make_connection(host, port, d)
def t_connection(host, port, d): print('sending', d) print(make_connection(host, port, d.encode()))