Added socket wrapper from python lib