def conn_from_flowtuple(ft):
 (sip, sport, dip, dport, offset, relts) = ft
 return {'src': sip, 'sport': sport, 'dst': dip, 'dport': dport, 'offset': offset, 'time': relts}

def conn_from_flowtuple ( ft ) : ( sip , sport , dip , dport , offset , relts ) = ft return { 'src' : sip , 'sport' : sport , 'dst' : dip , 'dport' : dport , 'offset' : offset , 'time' : relts }
convert the flow tuple into a dictionary .