Get the canonical representation of a parsed operation's data.
    Meant for backwards-compatibility

def op_canonicalize(op_name, parsed_op):
    """
    Get the canonical representation of a parsed operation's data.
    Meant for backwards-compatibility
    """
    global CANONICALIZE_METHODS

    if op_name not in CANONICALIZE_METHODS:
        # no canonicalization needed
        return parsed_op
    else:
        return CANONICALIZE_METHODS[op_name](parsed_op)