title: remove list item in from nested dictionary in python
body: <p>I have a nested diciotnary that contains lists. I want to remove a list item if it is the string 'maybe'. I tried with a one liner below but it isnt removing the 'maybe' value. Could someone point me in the right direction?
  Thank you!</p>
  <pre><code># my dictionary 
  d =  {'x':{'a':['yes', 'no', 'maybe'], 'b': ['yellow', 'maybe']}, 'y':{'a': ['sometimes', 'maybe'], 'c':['no']}}#, 'fop':{'a':0.145, 'b': numpy.nan, 'c':0.485}}
  
  
  # my attempt
  { k: {a: b for a, b in v.items() if b != 'maybe'} for k, v in d.items()}
  </code></pre>