Added smsocket.py