Update socketlib.py

Changing a couple of things.