def socketpair(*args): one, two = _socket.socketpair(*args) return socket(_sock=one), socket(_sock=two)