def config_parser_to_dict(config):
    """
    Translates the items in the config parser object to dict.

    :param config: RawConfigParser

    :return: Dictionary with the contents
    :rtype: dict
    """
    contents = {}
    for section in config.sections():
        contents.update({section: {item[0]: item[1] for item in config.items(section)}})

    return contents