Adding socket client in python