Write dict to a file in yaml format

def write_config(configfile, content):
    """
    Write dict to a file in yaml format
    """
    with open(configfile, 'w+') as ymlfile:
        yaml.dump(
            content,
            ymlfile,
            default_flow_style=False,
        )