Switch to using twisted.protocols.loopback which already exists.