def do_stuff(self, results): print results def load(self): """Load window data.""" get_computersystem = \ EnumerateInstances(('root', 'penguin'), 'PG_ComputerSystem') get_computersystem.deferred.addCallback(do_stuff) reactor.connectTCP(HOSTNAME, 5988, get_computersystem)