title: Getting internal value with dot notation
body: <p>I have a dictionary:</p>
  
  <pre><code>d = {'time': {36.0: 'mo'}, 'amount': {200.0: '$'}}
  </code></pre>
  
  <p>Each key (e.g. 'time') only ever has one value (e.g. {36.0 'mo'})</p>
  
  <p>I'd like to access the 36.0 by doing</p>
  
  <pre><code>result = d.time
  </code></pre>
  
  <p>And the 200.0 by doing</p>
  
  <pre><code>result = d.amount
  </code></pre>
  
  <p>How do I do this? So far I have:</p>
  
  <pre><code>class Bunch(object):
    def __init__(self, adict):
      self.__dict__.update(adict)
  
  x = Bunch(d)
  print x.time
  </code></pre>
  
  <p>Which produces {36.0: 'mo'} not 36.0. </p>