def wait_until_all_models_rated():
    ' Wait until all models has been assigned an ELO score. '
    while True:
        models = {}
        for blob in bucket.list_blobs(prefix='models/'):
            if (blob.size > 0):
                models[dirname(blob.name)] = True
                if (blob.metadata and ('elo' in blob.metadata)):
                    return True
        if (len(models) <= 1):
            return True
        sleep(600)
Wait until all models has been assigned an ELO score.
def wait_until_all_models_rated():
    '  '
    while True:
        models = {}
        for blob in bucket.list_blobs(prefix='models/'):
            if (blob.size > 0):
                models[dirname(blob.name)] = True
                if (blob.metadata and ('elo' in blob.metadata)):
                    return True
        if (len(models) <= 1):
            return True
        sleep(600)