Writes YAML files

    :param filename:
        The full path to the YAML file
    :param content:
        The content to dump
    :returns:
        The size written

def write_yaml(filename, content):
    '''
    Writes YAML files

    :param filename:
        The full path to the YAML file
    :param content:
        The content to dump
    :returns:
        The size written
    '''

    y = _yaml.dump(content, indent=4, default_flow_style=False)
    if y:
        return write_file(filename, y)