The below is a dictionary/JSON, i want to separate each key and value in a different column and put it in the excel. 

```
expected Output:
Keys                      Values
h                             e
f                              r
t                              ['w', 'x']
P                             ['d', 'c']
l  

                         q 

```

I tried 

```
import json

x = {
  "a": [
      { "h":"e" }, { "f": "r" }, { "t":  "[ w, x ]" } ],
  "b": [
      {"P": "[ d, c ]" }, {"l": "q" } ]
}

print(json.dumps(x))

for k, v in x.items():
    for k1, v1 in v.items():
        print(k1)

```