Run 2to3'ed tests under Python 3
Fix socket-error handling bug introduced by previous sendall() optimization