received_socket = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
os.close(fd)
received_socket.send('hello from the worker process\r\n')
How to pass file descriptors from parent to child in python?