def parse_mlil(context, mlil_list):
    """ Helps the GUI go from lists of instruction data to a cleanly formatted string """
    newText = ""
    for mlil in mlil_list:
        if mlil is not None:
            tokens = mlil.deref_tokens if hasattr(mlil, 'deref_tokens') else mlil.tokens
            newText += "{}: ".format(mlil.instr_index)
            newText += (''.join(context.escape(str(token)) for token in tokens))
        else:
            newText += ('None')
        newText += context.newline
    if(len(mlil_list) > 0):
        return newText.strip(context.newline)
    else:
        return 'None'