listener = socket(AF_INET, SOCK_STREAM)
listener.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
listener.bind((HOST, PORT))
listener.listen(32)
python SimpleHTTPRequestHandler server leaves socket in TIME_WAIT state after exit