I am unpacking a nested dictionary that I get from an API so I have no control over it. One of the sub dictionaries comes out as <class 'list'> in the form {'A':'B', 'C':'D', etc}. How can I convert this into a dictionary where the item on the left of the colon is the key and the item on the right is the value? I'm using python 3 if that helps.

```
def print_nested(dict_obj):
    # Iterate over all key-value pairs of a dict
    for key, value in dict_obj.items():
        if isinstance(value, dict):
            print_nested(value)
        else:
            if isinstance(value, list):
                print(type(value))
                print(*value)
            else:
                print(key, ':', value)

```

produces output:

```
<class 'list'>
{'putCall': 'CALL', 'symbol': 'MSFT_031723C250', etc}

```