Another version of packet's sending imitation in python.