Work around Python SSL bug http://bugs.python.org/issue8240 and use send instead of sendall since sendall doesn't actually work. :p