def format_schedule(sched):
    """
    Formats a schedule (as list of Operations) for printing in HTML
    """
    s = ''
    for op in sched:
        if op.type!='READ' and op.type!='WRITE':
            s += '<b>'+str(op)+' </b>'
        else:
            s += str(op)+' '
    return s+'\n'