Do not destroy context if socket test fails
PEP 8 fixes
Effing indents.
Indentation Fix
Merge pull request #578 from hoffmabc/DBFix

DHT and Socket Refactoring