def define(host, port, database, word):
 d = defer.Deferred()
 factory = DictLookupFactory('define', (database, word), d)
 from twisted.internet import reactor
 reactor.connectTCP(host, port, factory)
 return d

def define ( host , port , database , word ) : d = defer . Deferred ( ) factory = DictLookupFactory ( 'define' , ( database , word ) , d ) from twisted . internet import reactor reactor . connectTCP ( host , port , factory ) return d
returns for the given function .