'returns an arbitrary target if available'

def _get_target(self):

    if (not self.targets):
        return None
    try:
        target = self.targets.iterkeys().next()
        return target
    except Exception:
        return None
