This was tweaking Nagle, using edge triggered epoll, using sendfile(). Not just Python-optimizations.