import socket, struct, time

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(
    struct.pack("<4sBIQB", b"HAND", 1, 123, int(time.time()*1000), 0),
    ("127.0.0.1", 9000)
)
print("sent")