@staticmethod
def _to_dictionary(config_parser_data):
    """Turn from configparser object in to dictionary, with booleans."""
    config_data = {}
    for key in list(config_parser_data):
        try:
            config_data[key] = config_parser_data.getboolean(key)
        except ValueError:
            config_data[key] = config_parser_data.get(key)
    return config_data
