def METHOD_NAME(a):
    """FIXME: very dirty"""
    global save_ring
    if isinstance(a,Ideal):
        return ideal2OM(a)
    if (isinstance(a,list)):
        return cd.list1.list2OM([METHOD_NAME(a2) for a2 in a])
    return a