move byte2int(), int2byte(), packet_int24() to packet.py