Update to sender.py, all threads share socket