def METHOD_NAME(demos, host):
    '''
    Read a DDL
    '''
    for editorsdemoid in demos:
        try:
            file = None
            resp = post('get_ddl', host, params={"demo_id": editorsdemoid})
            response = resp.json()
            if response['status'] != 'OK':
                print("ERROR: get_ddl returned KO for demo {}".format(editorsdemoid))
                continue
            DDL = response['last_demodescription']
            if not DDL:
                print("ERROR: Empty or non-existing DDL for demo #{}".format(editorsdemoid))
                continue
            last_demodescription = DDL
            ddl_json = last_demodescription['ddl']
            file = open("DDLs/" + str(editorsdemoid) + ".json", "w")
            file.write(ddl_json)
        except Exception as ex:
            print("ERROR: Failed to read DDL from {} - {}".format(editorsdemoid, ex))
        finally:
            if file:
                file.close()