Update socketlib.py

Now using multiprocessing.