import configparser


def create_new_config_file(filepath: str, default_settings: dict):
    """
    Create a new configparser file, return the settings and the configparser object

    Parameters
    ----------
    filepath
        absolute filepath to the configparser object you wish to create
    default_settings
        new settings we want to write to the configparser file

    Returns
    -------
    configparser.ConfigParser
        configparser object used to read the file
    dict
        settings within the file
    """

    config = configparser.ConfigParser()
    config['Default'] = default_settings
    with open(filepath, 'w') as configfile:
        config.write(configfile)
    return config, default_settings