move byte2int(), int2byte() and packet_int24() to connections.py