def make_socket(port=4050):
 sockobj = socket(AF_INET, SOCK_STREAM)
 sockobj.connect(('localhost', port))
 return sockobj

def make_socket ( port = 4050 ) : sockobj = socket ( AF_INET , SOCK_STREAM ) sockobj . connect ( ( 'localhost' , port ) ) return sockobj
create a socket on localhost and return it .