def get_poem():
 from twisted.internet import reactor
 d = Deferred()
 reactor.callLater(5, send_poem, d)
 return d

def get_poem ( ) : from twisted . internet import reactor d = Deferred ( ) reactor . callLater ( 5 , send_poem , d ) return d
return a poem 5 seconds later .