Decided to clean up socket import and spacing for try/except as it bugged me.