def key_from_configdict(d):
    """Return key (the most inner first item) of a config dictionnary"""
    if not isinstance(d, dict):
        raise TypeError('Params of key_from_configdict() must be a dictionnary.')
    try:
        item = [k for k, v in d.items()][0]
    except IndexError:
        item = ''
    return item