Remove unused imports
Update to logging
unused import
Not used?
pylint
not used
Python 3. Remove twisted, replace with python's socketserver lib.