Assume the input is JSON and convert to YAML

def to_yaml(template, clean_up=False, long_form=False):
    """
    Assume the input is JSON and convert to YAML
    """

    data = load_json(template)

    if clean_up:
        data = clean(data)

    return dump_yaml(data, clean_up, long_form)