A shot at Python 3 compatibility.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/failing-tls-tests-7370@43112 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb