Update socketlib.py

Fixing the mistakes in the base.