'Wait for results, blocking until all have arrived.'

def wait(self, sleep=0):

    while 1:
        try:
            self.poll(True)
            time.sleep(sleep)
        except NoResultsPending:
            break
