I am trying to send an ACK with a data payload using the socket library but I cannot understand how to do it.
Is this supported and if not, what are the alternatives?
you can't do this , Socket library uses high level APIs like :
bind()
listen()
accept() ... etc
the acks will be handled for you ,
How to send ACK with data payload using python