'Create a DMP out of the given representation.'

def half_per(f, rep, kill=False):

    lev = f.lev
    if kill:
        if (not lev):
            return rep
        else:
            lev -= 1
    return DMP(rep, f.dom, lev)
