import copy


def clone_processor(p):
    """
    Create a new processor with the same properties as the original
    Recursive copy child processors

    :param p:
    :return:
    """
    return copy.deepcopy(p)