'Returns a deferred that fires with a valid libtorrent download handle.'

def get_handle(self):

    if (self.handle and self.handle.is_valid()):
        return succeed(self.handle)
    deferred = Deferred()
    self.deferreds_handle.append(deferred)
    return deferred
