I have a nested dictionary with unfixed length. 

```
[{'name': 'stack', 'children': [{'name': 'flow', 'children': [{'name': 'lldp', 'children': [{'name': 'sourc', 'children': [{'name': 'lldque.jrc', 'count': '11', 'size': '37'}]}]}, {'name': 'arp', 'children': [{'name': 'src', 'children': [{'name': 'arpred.cec', 'count': '37', 'size': '67'}]}]}]}]}]

```

I want to access last dict keys('count' and 'size') from dict.

I have tried below function but it is not working fine.

```
def get_value(your_dict,*keys):
    curr_dict = your_dict
    for k in keys:
        v = curr_dict.get(k,None)
        if v is None:
            break
        if isinstance(v,dict):
            curr_dict = v
    return v

```